<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>PMI Mobile</title>
    <link><?php echo base_url(); ?>pmi-mobile-server/index.php/rss</link>
    <description>Stock darah PMI harian di tiap UDD</description>
    <language>en-us</language>

      <?php foreach($udd as $u): ?>
        <item>
 		<title><?php echo $u['udd']; ?></title>
 		<id_udd><?php echo $u['id_udd']; ?></id_udd>
 		<?php  $pubDate = date("D, d M Y H:i:s +0700", strtotime($u['datetime_created'])); ?>
 		<pubDate><?php echo $pubDate; ?></pubDate>
 		<id_udd><?php echo $u['id_udd']; ?></id_udd>
 		
 		<description><![CDATA[
		<BR /><b>Stock A:</b><BR />
		PRC(A): <?php echo $u['a_prc']; ?><br />
		TC(A) : <?php echo $u['a_tc']; ?><br />
		WB(A) : <?php echo $u['a_wb']; ?><br />
		<BR /><b>Stock B:</b><BR />
		PRC(B): <?php echo $u['b_prc']; ?><br />
		TC(B) : <?php echo $u['b_tc']; ?><br />
		WB(B) : <?php echo $u['b_wb']; ?><br />
		<BR /><b>Stock AB:</b><BR />
		PRC(AB): <?php echo $u['ab_prc']; ?><br />
		TC(AB) : <?php echo $u['ab_tc']; ?><br />
		WB(AB) : <?php echo $u['ab_wb']; ?><br />
		<BR /><b>Stock O:</b><BR />
		PRC(O): <?php echo $u['o_prc']; ?><br />
		TC(O) : <?php echo $u['o_tc']; ?><br />
		WB(O) : <?php echo $u['o_wb']; ?><br />
		<br />
		
		]]></description>
 		
 		<a_prc><?php echo $u['a_prc']; ?></a_prc>
 		<a_tc><?php echo $u['a_tc']; ?></a_tc>
 		<a_wb><?php echo $u['a_wb']; ?></a_wb>
        	<b_prc><?php echo $u['b_prc']; ?></b_prc>
 		<b_tc><?php echo $u['b_tc']; ?></b_tc>
 		<b_wb><?php echo $u['b_wb']; ?></b_wb>
 		<ab_prc><?php echo $u['ab_prc']; ?></ab_prc>
 		<ab_tc><?php echo $u['ab_tc']; ?></ab_tc>
 		<ab_wb><?php echo $u['ab_wb']; ?></ab_wb>
 		<o_prc><?php echo $u['o_prc']; ?></o_prc>
 		<o_tc><?php echo $u['o_tc']; ?></o_tc>
 		<o_wb><?php echo $u['o_wb']; ?></o_wb>
        </item>

    <?php endforeach; ?>
  </channel>
</rss>